package com.chang.bootplus.vo;


import com.baomidou.mybatisplus.annotation.TableField;
import com.chang.bootplus.entity.Menu;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

@Data
@Accessors(chain = true)
public class MenuVO implements Serializable {

    @ApiModelProperty("")
    private Long id;

    @ApiModelProperty("父级菜单")
    private Long parentId;

    private String name;

    @ApiModelProperty("菜单url")
    private String path;

    @ApiModelProperty("菜单权限字符串")
    private String perms;

    @ApiModelProperty("头像url")
    private String icon;

    @ApiModelProperty("排序字段")
    private Integer order;

    private Integer status;


    @ApiModelProperty("组件类型：类型     0：目录   1：菜单   2：按钮")
    private Integer type;

    @TableField(exist = false)
    @ApiModelProperty("添加更新时为空")
    private List<MenuVO> children;

    @ApiModelProperty("创建时间")
    private LocalDateTime gmtCreate;

    @ApiModelProperty("更新时间")
    private LocalDateTime gmtModified;




}
